﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sistema_Totem.Logica.Clases;

namespace Sistema_Totem.Vista.Plantillas
{
    public partial class CambiarStatusPlantilla : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                List<Plantilla> formatos = ObtenerPlantilla();
                GridViewModificarPlantilla.DataSource = formatos;
                GridViewModificarPlantilla.DataBind();

            }

        }

        protected List<Plantilla> ObtenerPlantilla()
        {
            List<Plantilla> formatos = new List<Plantilla>();

            for (int i = 1; i <= 20; i++)
            {
                Plantilla formato = new Plantilla
                {
                    Id = i,
                    Nombre = "Plantilla " + i,

                };
                formatos.Add(formato);
            }
            return formatos;
        }

        protected void GridViewModificarPlantilla_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void GridViewModificarPlantilla_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {

        }

        protected void GridViewModificarPlantilla_SelectedIndexChanged1(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("../Plantillas/ModificarPlantilla.aspx");
        }
    }
}